package com.gs.wzweather.dao;


import com.gs.wzweather.dao.mapper.OpenMasMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;


@Repository
public class OpenMasDao {
    private final Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    OpenMasMapper mapper;

    public boolean insertMsg(String content) {
        try {
            mapper.insertMsg(content, "15068799066");
            return true;
        } catch (Exception e) {
            logger.info("insertMsg失败->{}",content);
            return false;
        }
    }
}